package com.stormrage.entity.learn;

import java.io.Serializable;

/**
 * @Title: LeaBunchOper.java
 * @Package com.stormrage.entity.learn
 * @Description: 班级实操成绩 Entity类
 * @author www.stormragetech.com
 * @date 2016年4月27日
 * @version V1.0
 */
public class LeaBunchOper implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 6567120310443976110L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer bunchId;

	private String excel;

	private String scoreExcel;

	private Integer locked;

	// ------------------------------- Fields -------------------------------

	public LeaBunchOper() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getBunchId() {
		return bunchId;
	}

	public void setBunchId(Integer bunchId) {
		this.bunchId = bunchId;
	}

	public String getExcel() {
		return excel;
	}

	public void setExcel(String excel) {
		this.excel = excel;
	}

	public String getScoreExcel() {
		return scoreExcel;
	}

	public void setScoreExcel(String scoreExcel) {
		this.scoreExcel = scoreExcel;
	}

	public Integer getLocked() {
		return locked;
	}

	public void setLocked(Integer locked) {
		this.locked = locked;
	}

	// ------------------------------- Fields -------------------------------

	public static LeaBunchOper instance(Integer bunchId) {
		LeaBunchOper entity = new LeaBunchOper();
		entity.setBunchId(bunchId);
		entity.setLocked(0);
		return entity;
	}

	public static LeaBunchOper instance(LeaBunchOper entity, String scoreExcel) {
		entity.setScoreExcel(scoreExcel);
		entity.setLocked(1);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " bunchId - " + bunchId + " excel - " + excel + " scoreExcel - "
				+ scoreExcel + " locked - " + locked;
	}

}
